<?php
if( !defined('IN_INDEX') )
{
	die('This page is hidden.');
}
if(!checkSession())
{
			function redirect($url)
			{
			?>
				<script type="text/javascript">
					{
					window.location = "<?=$url?>";
					}
				</script>
			<?php 
			}
			redirect("index.php?action=login");
	exit;
}
?>
<?php 
include('inc/functions_blog.php');
?>
<div id='postpath'>
		<a title="<?php echo translate('gotofrontpage'); ?>" href="index.php"><?php echo translate('home'); ?></a>
		 &gt; <a href="index.php?action=groups" title='<?php echo translate('groups'); ?>'><?php echo translate('groups'); ?></a>
</div>
<br />
<h1><?php echo translate('groups'); ?></h1>
<br />
<?php
$array_groups = displayGroups();

foreach($array_groups as $val)
{
	echo "<a href='index.php?action=groups&amp;sub=show&amp;gid=". $val['group_id']."'>". $val['group_name'] ."</a><br />";	
}
?>

